package com._dev.social.service;

import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @program: social_median_backend
 * @description: Minio服务
 * @author: Mr.Liu
 * @create: 2024-11-01 22:00
 **/
public interface MinioService {
    //判断桶是否存在
    Boolean bucketExists(String bucketName);
    //创建桶
    void makeBucket(String bucketName);
    //查询单个桶中的所有对象
    List<Object> listObjects(String bucketName);
    //上传文件
    Boolean upload(MultipartFile multipartFile);
    void upload(MultipartFile[] multipartFile);
    //删除文件
    Boolean deleteFile(String bucketName, String fileName);
    //获取文件链接
    String getFileUrl(String fileName);
}
